<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>贵州美食分类 - 贵州四季康养文旅</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tdesign-icons-vue-next/dist/index.min.css">
    <style>
        body {
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background-color: #f5f5f5;
            color: #333;
            padding-bottom: 60px;
        }
        .header {
            background-color: #0052d9;
            color: white;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        .back-btn {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .filter-section {
            background-color: white;
            position: sticky;
            top: 56px;
            z-index: 99;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        .filter-tab {
            flex: 1;
            text-align: center;
            padding: 12px 0;
            font-size: 14px;
            position: relative;
        }
        .filter-tab.active {
            color: #0052d9;
            font-weight: 500;
        }
        .filter-tab.active:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 3px;
            background-color: #0052d9;
            border-radius: 1px;
        }
        .filter-tab .icon {
            margin-left: 4px;
            transition: transform 0.2s;
        }
        .filter-tab.open .icon {
            transform: rotate(180deg);
        }
        .filter-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background-color: white;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s;
            z-index: 98;
        }
        .filter-dropdown.open {
            max-height: 300px;
            overflow-y: auto;
        }
        .filter-option {
            padding: 12px 16px;
            font-size: 14px;
            border-bottom: 1px solid #f0f0f0;
        }
        .filter-option.selected {
            color: #0052d9;
            font-weight: 500;
        }
        .category-tabs {
            display: flex;
            overflow-x: auto;
            white-space: nowrap;
            -webkit-overflow-scrolling: touch;
            background-color: white;
            padding: 12px 0;
        }
        .category-tab {
            padding: 6px 16px;
            margin: 0 4px;
            border-radius: 16px;
            font-size: 14px;
            flex-shrink: 0;
        }
        .category-tab.active {
            background-color: #e0f2fe;
            color: #0052d9;
            font-weight: 500;
        }
        .food-card {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 16px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        .food-image {
            width: 100%;
            height: 160px;
            object-fit: cover;
        }
        .tag {
            background-color: rgba(0,82,217,0.1);
            color: #0052d9;
            border-radius: 4px;
            padding: 2px 8px;
            font-size: 12px;
            margin-right: 6px;
            display: inline-block;
        }
        .rating {
            display: inline-flex;
            align-items: center;
            color: #ff9500;
            font-size: 14px;
        }
        .rating-star {
            margin-right: 2px;
        }
        .bottom-nav {
            border-top: 1px solid #eee;
            background: white;
            padding: 8px 0;
            position: fixed;
            bottom: 0;
            width: 100%;
            display: flex;
            justify-content: space-around;
        }
        .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 12px;
            color: #666;
        }
        .bottom-nav-item.active {
            color: #0052d9;
        }
        .flavor-tag {
            display: inline-block;
            padding: 4px 10px;
            background-color: #f8f9fa;
            border-radius: 16px;
            font-size: 12px;
            margin-right: 8px;
            margin-bottom: 8px;
            color: #4a5568;
        }
        .flavor-tag.active {
            background-color: #0052d9;
            color: white;
        }
        .banner {
            position: relative;
            height: 140px;
            overflow: hidden;
            border-radius: 8px;
            margin-bottom: 16px;
        }
        .banner img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .banner-text {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 12px;
            background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
            color: white;
        }
        .section-title {
            font-size: 18px;
            font-weight: bold;
            margin: 16px 0 12px;
            display: flex;
            align-items: center;
        }
        .section-title:before {
            content: '';
            display: block;
            width: 4px;
            height: 18px;
            background-color: #0052d9;
            margin-right: 8px;
            border-radius: 2px;
        }
        .snack-card {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        .snack-image {
            width: 100%;
            height: 100px;
            object-fit: cover;
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="header px-4 py-3 flex items-center">
        <div class="back-btn" onclick="history.back()">
            <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="w-5 h-5">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" />
            </svg>
        </div>
        <div class="flex-1 text-center font-medium">贵州美食</div>
        <div class="w-8 h-8 flex items-center justify-center">
            <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="w-5 h-5">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
            </svg>
        </div>
    </div>
    
    <!-- 筛选栏 -->
    <div class="filter-section">
        <div class="flex border-b border-gray-100 relative">
            <div class="filter-tab" onclick="toggleFilter('cuisine')">
                <span>菜系</span>
                <span class="icon">▼</span>
                
                <!-- 菜系下拉菜单 -->
                <div class="filter-dropdown" id="cuisine-dropdown">
                    <div class="filter-option selected">全部菜系</div>
                    <div class="filter-option">苗家菜</div>
                    <div class="filter-option">侗族菜</div>
                    <div class="filter-option">布依族菜</div>
                    <div class="filter-option">土家菜</div>
                    <div class="filter-option">仡佬族菜</div>
                    <div class="filter-option">汉族菜</div>
                </div>
            </div>
            
            <div class="filter-tab" onclick="toggleFilter('area')">
                <span>地区</span>
                <span class="icon">▼</span>
                
                <!-- 地区下拉菜单 -->
                <div class="filter-dropdown" id="area-dropdown">
                    <div class="filter-option selected">全部地区</div>
                    <div class="filter-option">贵阳市</div>
                    <div class="filter-option">遵义市</div>
                    <div class="filter-option">黔东南州</div>
                    <div class="filter-option">黔南州</div>
                    <div class="filter-option">黔西南州</div>
                    <div class="filter-option">铜仁市</div>
                    <div class="filter-option">毕节市</div>
                    <div class="filter-option">安顺市</div>
                    <div class="filter-option">六盘水市</div>
                </div>
            </div>
            
            <div class="filter-tab" onclick="toggleFilter('price')">
                <span>价格</span>
                <span class="icon">▼</span>
                
                <!-- 价格下拉菜单 -->
                <div class="filter-dropdown" id="price-dropdown">
                    <div class="filter-option selected">全部价格</div>
                    <div class="filter-option">¥0-50</div>
                    <div class="filter-option">¥50-100</div>
                    <div class="filter-option">¥100-200</div>
                    <div class="filter-option">¥200以上</div>
                </div>
            </div>
            
            <div class="filter-tab" onclick="toggleFilter('sort')">
                <span>排序</span>
                <span class="icon">▼</span>
                
                <!-- 排序下拉菜单 -->
                <div class="filter-dropdown" id="sort-dropdown">
                    <div class="filter-option selected">综合排序</div>
                    <div class="filter-option">好评优先</div>
                    <div class="filter-option">距离最近</div>
                    <div class="filter-option">价格从低到高</div>
                    <div class="filter-option">价格从高到低</div>
                </div>
            </div>
        </div>
        
        <!-- 口味标签 -->
        <div class="p-3 bg-white border-b border-gray-100">
            <div class="text-sm text-gray-500 mb-2">口味</div>
            <div>
                <span class="flavor-tag active">全部</span>
                <span class="flavor-tag">酸辣</span>
                <span class="flavor-tag">麻辣</span>
                <span class="flavor-tag">酸爽</span>
                <span class="flavor-tag">鲜香</span>
                <span class="flavor-tag">清淡</span>
                <span class="flavor-tag">香辣</span>
                <span class="flavor-tag">鱼香</span>
            </div>
        </div>
    </div>
    
    <!-- 内容区域 -->
    <div class="p-3">
        <!-- 美食节活动banner -->
        <div class="banner">
            <img src="https://images.unsplash.com/photo-1504674900247-0877df9cc836" alt="贵州美食节">
            <div class="banner-text">
                <h3 class="text-lg font-bold">2023贵州美食文化节</h3>
                <p class="text-sm mt-1">11月15日-20日 | 贵阳国际会展中心</p>
            </div>
        </div>
        
        <!-- 特色小吃专区 -->
        <div class="section-title">特色小吃</div>
        <div class="grid grid-cols-2 gap-3 mb-4">
            <div class="snack-card">
                <img src="https://images.unsplash.com/photo-1625398407796-82650a8c9dd4" class="snack-image" alt="丝娃娃">
                <div class="p-2">
                    <div class="font-medium text-sm">丝娃娃</div>
                    <div class="flex justify-between items-center mt-1">
                        <div class="text-xs text-gray-500">贵阳市</div>
                        <div class="text-xs text-red-500">¥15/份</div>
                    </div>
                </div>
            </div>
            <div class="snack-card">
                <img src="https://images.unsplash.com/photo-1563379926898-05f4575a45d8" class="snack-image" alt="肠旺面">
                <div class="p-2">
                    <div class="font-medium text-sm">肠旺面</div>
                    <div class="flex justify-between items-center mt-1">
                        <div class="text-xs text-gray-500">遵义市</div>
                        <div class="text-xs text-red-500">¥18/碗</div>
                    </div>
                </div>
            </div>
            <div class="snack-card">
                <img src="https://images.unsplash.com/photo-1569718212165-3a8278d5f624" class="snack-image" alt="糯米饭">
                <div class="p-2">
                    <div class="font-medium text-sm">糯米饭</div>
                    <div class="flex justify-between items-center mt-1">
                        <div class="text-xs text-gray-500">黔东南州</div>
                        <div class="text-xs text-red-500">¥12/份</div>
                    </div>
                </div>
            </div>
            <div class="snack-card">
                <img src="https://images.unsplash.com/photo-1623689043725-583a58b3db75" class="snack-image" alt="豆腐圆子">
                <div class="p-2">
                    <div class="font-medium text-sm">豆腐圆子</div>
                    <div class="flex justify-between items-center mt-1">
                        <div class="text-xs text-gray-500">黔南州</div>
                        <div class="text-xs text-red-500">¥10/碗</div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 苗家菜 -->
        <div class="section-title">苗家菜</div>
        
        <!-- 酸汤鱼 -->
        <div class="food-card">
            <img src="https://images.unsplash.com/photo-1569058242567-93de6f36f8e6" class="food-image" alt="酸汤鱼">
            <div class="p-3">
                <h3 class="text-lg font-bold">苗家酸汤鱼</h3>
                <div class="flex mt-2">
                    <span class="tag">苗家菜</span>
                    <span class="tag">酸爽</span>
                </div>
                <p class="text-sm text-gray-600 mt-2 line-clamp-2">
                    贵州名菜，以新鲜鱼肉和酸汤为主料，口感酸爽开胃，汤色乳白，鱼肉鲜嫩，是贵州苗族地区的传统名菜。
                </p>
                <div class="flex justify-between items-center mt-3">
                    <div class="rating">
                        <span class="rating-star">★</span>
                        <span>4.9</span>
                        <span class="text-gray-500 ml-1">(328评价)</span>
                    </div>
                    <div class="text-red-500 font-medium">¥88/份</div>
                </div>
                <div class="flex justify-between items-center mt-2 text-xs text-gray-500">
                    <div>黔东南州凯里市</div>
                    <div>月售1024份</div>
                </div>
            </div>
        </div>
        
        <!-- 苗家酸肉 -->
        <div class="food-card">
            <img src="https://images.unsplash.com/photo-1617692855027-33b14f061079" class="food-image" alt="苗家酸肉">
            <div class="p-3">
                <h3 class="text-lg font-bold">苗家酸肉</h3>
                <div class="flex mt-2">
                    <span class="tag">苗家菜</span>
                    <span class="tag">发酵</span>
                </div>
                <p class="text-sm text-gray-600 mt-2 line-clamp-2">
                    苗族传统美食，将新鲜猪肉腌制发酵而成，口感酸香独特，是苗族人招待贵客的传统佳肴。
                </p>
                <div class="flex justify-between items-center mt-3">
                    <div class="rating">
                        <span class="rating-star">★</span>
                        <span>4.7</span>
                        <span class="text-gray-500 ml-1">(256评价)</span>
                    </div>
                    <div class="text-red-500 font-medium">¥68/份</div>
                </div>
                <div class="flex justify-between items-center mt-2 text-xs text-gray-500">
                    <div>黔东南州雷山县</div>
                    <div>月售876份</div>
                </div>
            </div>
        </div>
        
        <!-- 侗族菜 -->
        <div class="section-title">侗族菜</div>
        
        <!-- 油茶 -->
        <div class="food-card">
            <img src="https://images.unsplash.com/photo-1565299624946-b28f40a0ae38" class="food-image" alt="侗族油茶">
            <div class="p-3">
                <h3 class="text-lg font-bold">侗族油茶</h3>
                <div class="flex mt-2">
                    <span class="tag">侗族菜</span>
                    <span class="tag">早餐</span>
                </div>
                <p class="text-sm text-gray-600 mt-2 line-clamp-2">
                    侗族传统早餐，将茶叶、米粉、花生等原料炒香后煮制而成，香气浓郁，营养丰富，是侗族人民日常生活中的重要食品。
                </p>
                <div class="flex justify-between items-center mt-3">
                    <div class="rating">
                        <span class="rating-star">★</span>
                        <span>4.8</span>
                        <span class="text-gray-500 ml-1">(189评价)</span>
                    </div>
                    <div class="text-red-500 font-medium">¥28/碗</div>
                </div>
                <div class="flex justify-between items-center mt-2 text-xs text-gray-500">
                    <div>黔东南州黎平县</div>
                    <div>月售1356份</div>
                </div>
            </div>
        </div>
        
        <!-- 汉族菜 -->
        <div class="section-title">汉族菜</div>
        
        <!-- 遵义羊肉粉 -->
        <div class="food-card">
            <img src="https://images.unsplash.com/photo-1626509653291-18d9a934b9db" class="food-image" alt="遵义羊肉粉">
            <div class="p-3">
                <h3 class="text-lg font-bold">遵义羊肉粉</h3>
                <div class="flex mt-2">
                    <span class="tag">汉族菜</span>
                    <span class="tag">面食</span>
                </div>
                <p class="text-sm text-gray-600 mt-2 line-clamp-2">
                    遵义市传统特色小吃，以新鲜羊肉和米粉为主料，配以特制辣椒油和酸菜，香辣可口，汤鲜味美。
                </p>
                <div class="flex justify-between items-center mt-3">
                    <div class="rating">
                        <span class="rating-star">★</span>
                        <span>4.9</span>
                        <span class="text-gray-500 ml-1">(456评价)</span>
                    </div>
                    <div class="text-red-500 font-medium">¥22/碗</div>
                </div>
                <div class="flex justify-between items-center mt-2 text-xs text-gray-500">
                    <div>遵义市红花岗区</div>
                    <div>月售2156份</div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 底部导航 -->
    <div class="bottom-nav">
        <div class="bottom-nav-item">
            <i class="t-icon t-icon-home"></i>
            <span>首页</span>
        </div>
        <div class="bottom-nav-item active">
            <i class="t-icon t-icon-browse"></i>
            <span>发现</span>
        </div>
        <div class="bottom-nav-item">
            <i class="t-icon t-icon-shop"></i>
            <span>商城</span>
        </div>
        <div class="bottom-nav-item">
            <i class="t-icon t-icon-chat"></i>
            <span>消息</span>
        </div>
        <div class="bottom-nav-item">
            <i class="t-icon t-icon-user"></i>
            <span>我的</span>
        </div>
    </div>
    
    <script>
        // 筛选下拉菜单逻辑
        function toggleFilter(type) {
            const dropdown = document.getElementById(`${type}-dropdown`);
            const allDropdowns = document.querySelectorAll('.filter-dropdown');
            const allTabs = document.querySelectorAll('.filter-tab');
            
            // 关闭其他下拉菜单
            allDropdowns.forEach(item => {
                if (item !== dropdown) {
                    item.classList.remove('open');
                }
            });
            
            allTabs.forEach(tab => {
                if (!tab.contains(dropdown)) {
                    tab.classList.remove('open');
                }
            });
            
            // 切换当前下拉菜单
            dropdown.classList.toggle('open');
            dropdown.parentElement.classList.toggle('open');
        }
        
        // 点击选项
        document.querySelectorAll('.filter-option').forEach(option => {
            option.addEventListener('click', function(e) {
                e.stopPropagation();
                
                // 移除同级选项的选中状态
                const siblings = Array.from(this.parentElement.children);
                siblings.forEach(sibling => sibling.classList.remove('selected'));
                
                // 设置当前选项为选中状态
                this.classList.add('selected');
                
                // 关闭下拉菜单
                this.parentElement.classList.remove('open');
                this.parentElement.parentElement.classList.remove('open');
                
                // 更新筛选标签文本
                const filterText = this.textContent;
                const tabText = this.parentElement.parentElement.querySelector('span:first-child');
                tabText.textContent = filterText;
                
                // 这里可以添加筛选逻辑
                console.log('选择了:', filterText);
            });
        });
        
        // 点击页面其他区域关闭下拉菜单
        document.addEventListener('click', function(e) {
            if (!e.target.closest('.filter-tab')) {
                document.querySelectorAll('.filter-dropdown').forEach(dropdown => {
                    dropdown.classList.remove('open');
                });
                document.querySelectorAll('.filter-tab').forEach(tab => {
                    tab.classList.remove('open');
                });
            }
        });
        
        // 口味标签点击
        document.querySelectorAll('.flavor-tag').forEach(tag => {
            tag.addEventListener('click', function() {
                document.querySelectorAll('.flavor-tag').forEach(t => {
                    t.classList.remove('active');
                });
                this.classList.add('active');
                
                // 这里可以添加口味筛选逻辑
                console.log('选择了口味:', this.textContent);
            });
        });
    </script>
</body>
</html> 